WebMail : RoundCube
2016/01/31 |
Install RoundCube to configure web-based mail transfer system like yahoo mail or hotmail.
This example uses servers below for configuration of RoundCube.
www.srv.world - RoundCube installed Web Servermail.srv.world - SMTP/IMAP Server
|
|
[1] | |
[2] | |
[3] | |
[4] | |
[5] | |
[6] | Create a Database for RoundCube. |
root@www:~# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 36 Server version: 5.5.46-MariaDB-1ubuntu0.14.04.2 (Ubuntu) Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. # create "roundcube" database ( set your own password for 'password' section )
MariaDB [(none)]>
create database roundcube; Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on roundcube.* to roundcube@'localhost' identified by 'password'; Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec) exit Bye |
[7] | Install RoundCube. |
root@www:~#
apt-get -y install roundcube roundcube-mysql # select "No" on here +----------------------+ Configuring roundcube-core +-----------------------+ | | | The roundcube package must have a database installed and configured | | before it can be used. This can be optionally handled with | | dbconfig-common. | | | | If you are an advanced database administrator and know that you want to | | perform this configuration manually, or if your database has already | | been installed and configured, you should refuse this option. Details | | on what needs to be done should most likely be provided in | | /usr/share/doc/roundcube. | | | | Otherwise, you should probably choose this option. | | | | Configure database for roundcube with dbconfig-common? | | | | <Yes> <No> | | | +---------------------------------------------------------------------------+root@www:~# cd /usr/share/dbconfig-common/data/roundcube/install root@www:/usr/share/dbconfig-common/data/roundcube/install# mysql -u roundcube -p < mysql Enter password: # MariaDB roundcube password root@www:/usr/share/dbconfig-common/data/roundcube/install#
root@www:~#
vi /etc/roundcube/debian-db.php # set database info $dbuser=' roundcube ';$dbpass=' password ';$basepath=''; $dbname=' roundcube ';$dbserver=''; $dbport=''; $dbtype=' mysql ';
root@www:~#
vi /etc/roundcube/main.inc.php # line 78: specify IMAP server (SSL) $rcmail_config['default_host'] = ' ssl://mail.srv.world ';
# line 81: specify IMAP port (SSL) $rcmail_config['default_port'] = 993 ;
# line 146: specify SMTP server (SSL) $rcmail_config['smtp_server'] = ' ssl://mail.srv.world ';
# line 150: specify SMTP port (SSL) $rcmail_config['smtp_port'] = 465 ;
# line 154: change ( use the same user for SMTP auth and IMAP auth ) $rcmail_config['smtp_user'] = ' %u ';
# line 158: change ( use the same password for SMTP auth and IMAP auth ) $rcmail_config['smtp_pass'] = ' %p ';
# line 162: change ( SMTP auth type ) $rcmail_config['smtp_auth_type'] = ' LOGIN ';
# line 174: specify SMTP HELO host $rcmail_config['smtp_helo_host'] = ' mail.srv.world ';
# line 306: specify your domain name $rcmail_config['mail_domain'] = ' srv.world ';
# line 324: change UserAgent $rcmail_config['useragent'] = ' Server World Webmail ';
# line 327: change title $rcmail_config['product_name'] = ' Server World Webmail ';
# line 433: change to your language $rcmail_config['language'] = ' ja_JP ';
root@www:~#
vi /etc/apache2/conf-enabled/roundcube.conf # line 3-4: uncomment Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/ Alias /roundcube /var/lib/roundcube # line 11: change access permission if need Require ip 127.0.0.1 10.0.0.0/24
php5enmod mcrypt root@www:~# /etc/init.d/apache2 restart * Restarting web server apache2 ...done. |
[8] | Access to 'http://(your server's hostname or IP address/)/roundcube/', then follwing screen is shown, authenticate with a user and his password to login. |
[9] | Just logined. |